#根据给定的字符串和列表
#在每行注释下边中对应的切片
s = "Python"
#	 012345
# yth
print(s[1:4])
# Py
print(s[:2])
# hon
print(s[3:])
# Pto
print(s[::2])
l=[7,5,3,7,4,2,56,7,4,9,8, 2, 0, 8]
#  0 1 2 3 4 5 6  7 8 9 10 11 12 13

# [5, 3, 7, 4, 2, 56, 7, 4, 9]
print(l[1:10])
# [7, 5, 3, 7, 4, 2]
print(l[:6])
# [7, 2, 7, 9, 2, 8]
print(l[3::2])
# [5, 7, 2, 7, 9]
print(l[1:10:2])